const OkTag = '[正常]';
const WarnningTag = '[异常]';
const emotionAction = '[情绪干预]';

// CheckUserAnswerIsOk 检查用户回答是否正常，并返回去除 tag 后的文字
export const CheckUserAnswerIsOk = (answer: string) => {
  if (answer.includes(OkTag)) {
    return [answer.replace(OkTag, ''), true];
  }
  if (answer.includes(WarnningTag)) {
    return [answer.replace(WarnningTag, ''), false];
  }
  if (answer.includes(emotionAction)) {
    console.log('情绪干预', answer);
    return [answer.replace(emotionAction, ''), false];
  }
  return [answer, true];
};
